/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2024-03-31
 * Time: 14:51
 */
public class Demo3 {
    public static void main(String[] args) throws InterruptedException {
        Object object=new Object();
        System.out.println("解锁之前");
        synchronized (object){
            object.wait();
        }
        System.out.println("解锁之后");
    }
}
